<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>

<html>
<head>
  <jsp:include page="templates/head.jsp" />
  <script type="text/javascript">
    $(document).ready(function() {
		$('#AuthorTabs').tabs();
		$('body').updateHtml();
	});
  </script>
</head>
<body>
  <jsp:include page="templates/header.jsp" />
  <div id="ContentBox">
    <div id="AuthorTabs">
      <ul>
        <li><a href="#AuthorInfoTab">Info</a></li>
      </ul>
      <div id="AuthorInfoTab">
        <h3>${author.fname} ${author.lname}</h3>
        <ul>
          <c:forEach items="${author.books}" var="book">
            <li>${book.title} [${book.genre.description}]</li>
          </c:forEach>
        </ul>
      </div>
    </div>
  </div>
  <jsp:include page="templates/footer.jsp" />
</body>
</html>